package com.zh;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@EnableDiscoveryClient  // 启用 Nacos 注册发现
public class HelloApp {
    public static void main(String[] args) {  //命令行参数    jvm参数
        SpringApplication.run(HelloApp.class, args);
    }
}

//    java -jar HelloApp.jar --server.port=8084
//   docker run -d -p 8084:8084 --name hello-app zy/hello-app:v1
